package com.example.lib_net

import okhttp3.OkHttpClient
import retrofit2.Retrofit
import retrofit2.converter.gson.GsonConverterFactory

object RetrofitManager {

    fun getRetrofit(okHttpClient: OkHttpClient):Retrofit{
        val builder =Retrofit.Builder()
        builder.apply {
            baseUrl(BuildConfig.BASE_URL)
            client(okHttpClient)
            addConverterFactory(GsonConverterFactory.create())

        }
        return Retrofit.Builder().build()
    }
}